package com.common.domain;

import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * @author 大静
 * @version 1.0
 * @date 2021-05-07 10:42
 * @description 订单bean，对应sys_order
 */
@Data
@NoArgsConstructor
public class Order implements Serializable {
  private String orderId;
  private Double orderMoney;
  private String orderReceiverinfo;
  private Integer orderPaystatus;
  private Date orderTime;
  private String userId;
  private List<OrderItem> orderItems = new ArrayList<>();

  public Order(
      String orderId,
      Double orderMoney,
      String orderReceiverinfo,
      Integer orderPaystatus,
      Date orderTime,
      String userId) {
    this.orderId = orderId;
    this.orderMoney = orderMoney;
    this.orderReceiverinfo = orderReceiverinfo;
    this.orderPaystatus = orderPaystatus;
    this.orderTime = orderTime;
    this.userId = userId;
  }
}
